﻿using BaseData.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace BaseData.RazorLib.Services;

public interface IWorkstationService
{
    Task<PaginatedResult<WorkstationInfoResponseDto>?> QueryWorkstationsByPage(WorkstationSearchRequestDto searchRequestDto);
    
    Task<Result<WorkstationInfoResponseDto>?> UpdateWorkstation(int key, WorkstationEditRequestDto editRequestDto);
    
    Task<Result<WorkstationInfoResponseDto>?> CreateWorkstation(WorkstationEditRequestDto editRequestDto);
    
    Task<Result<WorkstationInfoResponseDto>?> GetWorkstation(int key);

    Task<Result<IList<WorkstationInfoResponseDto>>?> QueryWorkstations(WorkstationSearchRequestDto searchRequestDto);

}